package com.example.feign.controller;

import com.example.feign.service.FeginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {
    @Autowired
    private FeginService feginService;

    @RequestMapping("/hellow")
    public String hellow(@RequestParam("name") String name){
        return feginService.hellow(name);
    }

}
